package nxu.it.util;

import com.it.entity.Manager;
import com.it.entity.Student;
import com.it.entity.SysUser;

import javax.servlet.http.HttpSession;

/**
 * @author yangliu
 * @project Project_MeetingTeam
 * @sid 12020243892
 * @date 2022/11/28 - 15:22
 */
public class SessionUtil {

    public static Student getStudent(HttpSession session){
        Student user = (Student) session.getAttribute("student");
        return user;
    }

    public static Manager getManager(HttpSession session){
        Manager user = (Manager) session.getAttribute("manager");
        return user;
    }

    public static SysUser getSysUser(HttpSession session){
        SysUser user = (SysUser) session.getAttribute("sysuser");
        return user;
    }

}
